package com.example.demo.cardemo;

public class CarTradition {
    public static void main(String[] args) {
        Car car = new Car(88);

    }
    static class Car{

        private Framework framework;
        public Car(int size){
            this.framework = new Framework(size);
            System.out.println("car init....");
        }

    }

    static class Framework{
        private Bottom bottom;
        public Framework(int size){
            this.bottom = new Bottom(size);
            System.out.println("framework init....");
        }
    }

    static class Bottom{
        private Tire tire;
        public Bottom(int size){
            this.tire = new Tire(size);
            System.out.println("bottom init...");
        }
    }

    static class Tire{
        private int tire;
        public Tire(int size){

            System.out.println("tire init...."+size);
        }
    }
}
